package com.ruoyi.base.domain;

import javax.validation.constraints.NotBlank;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 节次对象 base_section
 * 
 * @author yepanpan
 * @date 2020-11-09
 */
@ApiModel("节次实体")
@Getter
@Setter
public class BaseSection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    private Long id;

    /** 代码 */
    @Excel(name = "代码", prompt = "必填项")
    @ApiModelProperty("代码")
    @NotBlank(message="代码不能为空")
    private String code;

    /** 标题 */
    @Excel(name = "标题", prompt = "必填项")
    @ApiModelProperty("标题")
    @NotBlank(message="标题不能为空")
    private String title;

    /** 总学时 */
    @Excel(name = "总学时", prompt = "必填项")
    @ApiModelProperty("总学时")
    @NotBlank(message="总学时不能为空")
    private Long duration;

    /** 状态 */
    @Excel(name = "状态", dictType = "common_status", combo = {"启用","禁用"})
    @ApiModelProperty("状态")
    @NotBlank(message="状态不能为空")
    private String status;

 
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("title", getTitle())
            .append("remark", getRemark())
            .append("duration", getDuration())
            .append("status", getStatus())
            .toString();
    }
}
